package com.jobguard.config;

import org.springframework.amqp.core.Queue;
import org.springframework.amqp.core.QueueBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * function:
 * author: xxxxsl
 * date: 2024/12/4 13:25
 */
@Configuration
public class RabbitConfiguration {
    @Bean
    public Queue emailQueue(){
        return QueueBuilder
                .durable("mail")
                .build();
    }
}
